﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WebServices
{
    /// <summary>
    /// 结果信息类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [DataContract]
    public class ResultInfo<T> where T : new() {
        /// <summary>
        /// 调用结果是否处理成功
        /// </summary>
        [DataMember]
        public bool Result { get; set; }
        /// <summary>
        /// 调用结果返回的数据
        /// </summary>
        [DataMember]
        public T Data { get; set; }
        /// <summary>
        /// 调用结果返回的表格数据
        /// </summary>
        [DataMember]
        public DataTable Table { get; set; }
        /// <summary>
        /// 调用结果返回的对象数据
        /// </summary>
        [DataMember]
        public object DataFormat { get; set; }
        /// <summary>
        /// 调用结果返回的相关提示信息
        /// </summary>
        [DataMember]
        public string MSG { get; set; }
    }
}
